/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui.componentes;

/**
 *
 * @author Administrador
 */
public class JTextFieldCodigo extends javax.swing.JTextField{

    public JTextFieldCodigo(int length, boolean zeroEsquerda) {
        this.setHorizontalAlignment(JTextFieldCodigo.RIGHT);
        this.setDocument(new NumeroDocument(length, zeroEsquerda, false));
    }
    
    public JTextFieldCodigo(int length, boolean zeroEsquerda, boolean sinalNegativo) {
        this.setHorizontalAlignment(JTextFieldCodigo.RIGHT);
        this.setDocument(new NumeroDocument(length, zeroEsquerda, sinalNegativo));
    }
    
    
}
